package com.yanqu.road.connect;

public abstract class Connection extends BaseConnection {
	private long connectionId;
	private boolean effective;
	private long lastHeartTime;

	public long getLastHeartTime() {
		return lastHeartTime;
	}

	public void setConnectionId(long connectionId) {
		this.connectionId = connectionId;
	}

	public void setLastHeartTime(long lastHeartTime) {
		this.lastHeartTime = lastHeartTime;
	}

	public Connection(boolean effective) {
		this.effective = effective;
	}

	@Override
	public String toString() {
		return "Connection{" +
				"connectionId=" + connectionId +
				", effective=" + effective +
				'}';
	}

	public boolean isAlive() {
		return true;
	}

	public void setEffective(boolean effective) {
		this.effective = effective;
	}

	public long getConnectionId() {
		return connectionId;
	}




}
